home *** CD-ROM | disk | FTP | other *** search
INSTALL Professional project | 1996-04-10 | 15.6 KB | 677 lines |
- /*
- * FILE: INSTALL.DAT
- *
- * DESC:
- * Installation script for the Datapath HarleQuin series Driver Software.
- */
-
- @DefineProject
- @Name = "Datapath HarleQuin series Driver Software"
- @Version = "2.10"
- @Subdir = "\\"
- @OutDrive = C
- @EndProject
-
- @DefineVars
- @Drive @HarlequinDrive = @OutDrive
- @Dir @Harlequin = "\\HQUIN\\"
- @Qstring @HarleName = "HarleQuin"
- @Qstring @TigaInt = "0x7f"
- @Qstring @HarleSerial = "XXXX"
- @Qstring @OldDirList = "\\HQUIN \\SHQUIN \\H2000 \\HQUIN8V"
- @Dir @OldDir = "\\"
- @Integer @Count = 0
- @Drive @WDrive = @OutDrive
- @Dir @Windows = "\\WINDOWS\\"
- @Drive @UstationDrive = @OutDrive
- @Dir @Ustation = "\\Ustation\\"
- @Dir @MDLApps = "\\Ustation\\mdlapps\\"
- @EndVars
-
- @Display
- @Cls
-
-
- DATAPATH
-
-
-
-
- @HarleName Driver software
- Install Disk
-
- Version @Version
-
-
-
-
-
-
- @Pause
- @Cls
-
- This program allows you to install the TIGA driver software for the
- Datapath @HarleName series of graphics accelerator boards.
-
- It also offers the option to install accelerated, high resolution
- device drivers for Windows and Microstation. These drivers exploit the
- power of the @HarleName's graphics processor in order to run faster.
-
-
-
-
-
-
-
-
-
-
- @Pause
- @Cls
-
- This program will ask you a number of questions.
-
- Each question has a default answer.
- If the default answer is correct, press the ENTER key.
- Otherwise, type the answer and then press the ENTER key.
-
- If you make a mistake while typing, press the BACKSPACE key
- and then retype the answer.
-
- You may press the [Esc] key at any time to abort the installation.
-
- Note, that if you abort the installation part way through, the whole
- installation should be repeated. This is because the selected files
- are not copied until the end of the installation.
-
-
- @Pause
- @EndDisplay
-
- @GetString @HarleSerial
- @Cls
- Please type in the serial number of your @HarleName board.
- This may be found on the end of the box or on the board itself.
- @Prompt = " @HarleName Serial Number "
- @EndString
-
- @GetOutDrive @HarlequinDrive
- @Suppress A
- @Suppress B
- @Cls
- On which disk drive do you wish to install the
- @HarleName TIGA software:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move the
- bar to the disk drive required and then press the [Enter] key.
- @EndOutDrive
-
- @GetSubdir @Harlequin
- @Cls
- In which subdirectory on disk @HarlequinDrive: do you wish to install
- the @HarleName TIGA software?
- @PROMPT = " Which subdirectory? "
- @EndSubdir
-
- AGAIN:
- @OldDir = @StrToken(@OldDirList, @Count)
- /*
- @Display
- >@OldDirList< @Count @OldDir
-
- @Pause
- @EndDisplay
- */
- @If ("@OldDir" == "\\")
- @Goto DONE
- @Endif
-
- /*
- @Display
- @OldDir
- @Harlequin
- @Pause
- @EndDisplay
- */
-
- @If ("@OldDir" != "@Harlequin"
- && @Exists("@HarlequinDrive:\\@OldDir\\tigacd.exe")) /* { */
- @FlushOptions()
- @GetOption
- @Cls
- I have detected an old version of the software in @HarlequinDrive:@OldDir
- Do you wish me to delete it?
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Use the [Up Arrow] & [Down Arrow] keys to move the bar
- to the required response and then press the [Enter] key.
- @Option 1000 = "Yes"
- @Option 1001 = "No"
- @EndOption
-
- @If (1000 [= @Option) /* { */
-
- @Display
-
- About to DELETE @HarlequinDrive:@OldDir
-
- @Pause
- @EndDisplay
- @Delete("@HarlequinDrive:\\@OldDir\\tigademo\\*.*")
- @RmDir("@HarlequinDrive:\\@OldDir\\tigademo")
- @Delete("@HarlequinDrive:\\@OldDir\\tigatest\\*.*")
- @RmDir("@HarlequinDrive:\\@OldDir\\tigatest")
- @Delete("@HarlequinDrive:\\@OldDir\\windows\\*.*")
- @RmDir("@HarlequinDrive:\\@OldDir\\windows")
- @Delete("@HarlequinDrive:\\@OldDir\\ustation\\*.*")
- @RmDir("@HarlequinDrive:\\@OldDir\\ustation")
- /* new style directories jic */
- @Delete("@HarlequinDrive:\\@OldDir\\hmca\\*.*")
- @RmDir("@HarlequinDrive:\\@OldDir\\hmca")
- @Delete("@HarlequinDrive:\\@OldDir\\h2000\\*.*")
- @RmDir("@HarlequinDrive:\\@OldDir\\h2000")
- @Delete("@HarlequinDrive:\\@OldDir\\hquin\\*.*")
- @RmDir("@HarlequinDrive:\\@OldDir\\hquin")
- @Delete("@HarlequinDrive:\\@OldDir\\shquin\\*.*")
- @RmDir("@HarlequinDrive:\\@OldDir\\shquin")
- @Delete("@HarlequinDrive:\\@OldDir\\hquin8v\\*.*")
- @RmDir("@HarlequinDrive:\\@OldDir\\hquin8v")
- /* */
- @Delete("@HarlequinDrive:\\@OldDir\\*.*")
- @RmDir("@HarlequinDrive:\\@OldDir")
- @Display
-
- NB - you may need to edit your autoexec.bat file to remove references to
- @HarlequinDrive:@OldDir
-
- @Pause
- @EndDisplay
-
- @Else /* }{ */
- /*
- @Display
- NO DELETE
-
- @Pause
- @EndDisplay
- */
- @Endif /* } */
-
- @Endif /* } */
-
- @Count = @Eval(@Count + 1)
- @Goto AGAIN
-
- DONE:
-
- @DefineVars
- @Drive @HarleyWindowsDrive = @HarlequinDrive
- @Dir @HarleyWindows = "@Harlequin\\WINDOWS\\"
- @Drive @HarleyUstationDrive = @HarlequinDrive
- @Dir @HarleyUstation = "@Harlequin\\Ustation\\"
- @EndVars
-
- @GetOption
- @CheckBox
- @Cls
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Use the [Up Arrow] & [Down Arrow] keys to move the bar
- to the required response. Press + to select and - to deselect.
- Press Y to select all and N to deselect all.
- Press the [Enter] key when done.
- @Option 10 = "Do you wish to use the @HarleName with Windows?"
- @Option 20 = "Do you wish to use the @HarleName with Microstation?"
- @EndOption
-
-
- @If (10 [= @Option) /* ( */
-
- @Display
- @Cls
- Installation of the @HarleName MS WINDOWS 3.1 drivers
-
- This program will copy the drivers supplied with this disk to
- @HarleyWindowsDrive:@HarleyWindows and to the Windows system directory.
-
- IMPORTANT! In order for Windows to function correctly you must install
- the new drivers with Windows Setup. This is essential even if you have
- already installed an earlier version of the @HarleName Windows driver.
-
- In Windows Setup:
- Select a @HarleName driver for the display.
- Specify @HarleyWindowsDrive:@HarleyWindows if asked for
- the location of the @HarleName Windows drivers.
-
- Please note that the H2000 does not support True Colour modes.
-
- Windows Setup will be run automatically at the end of this installation.
-
- @Pause
- @EndDisplay
-
- WINDOWS_AGAIN:
- @GetOutDrive @WDrive
- @Suppress A
- @Suppress B
- @Cls
- On which disk drive is Windows installed:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move the
- bar to the disk drive required and then press the [Enter] key.
- @EndOutDrive
-
- @GetSubdir @Windows
- @Cls
- In which subdirectory on disk @WDrive: is Windows installed?
- @PROMPT = " Which subdirectory? "
- @EndSubdir
-
- /* brackets before ! neccessary !! - mtf 6jul94 */
- @If ( (!@Exists("@WDrive:\\@Windows\\system.ini"))
- || (!@Exists("@WDrive:\\@Windows\\setup.exe")) )
- @Display
-
- I do not believe you - try again.
-
- @Pause
- @EndDisplay
- @Goto WINDOWS_AGAIN
- @Endif
-
- @GetOption
- @Cls
- Do you wish to view the DOC file for the Windows driver?
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move the
- bar to the required response and then press the [Enter] key.
- @Option 622 = "Yes"
- @Option 623 = "No"
- @EndOption
-
- @Endif /* 10 ) */
-
- @If (20 [= @Option) /* ( */
-
- @TigaInt = "0x60"
-
- @Display
- @Cls
- Installation of the @HarleName MICROSTATION 4.0 driver
-
-
- This program will copy the drivers supplied with this disk to
- @HarleyUstationDrive:@HarleyUstation and to the Microstation drivers directory.
- The BirdsEye view MDL utility is also copied
- to your MicroStation MDL applications directory.
-
- To complete the installation:
- Change to the Microstation directory.
- Run USCONFIG.
- Select Vendor supplied driver and pick Datapath @HarleName driver.
-
- NOTE: The TIGA environment variable will be set with -i@TigaInt,
- so that TIGACD will use interrupt @TigaInt.
-
-
- @Pause
- @EndDisplay
-
- @GetOutDrive @UstationDrive
- @Suppress A
- @Suppress B
- @Cls
- On which disk drive is Microstation installed:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move the
- bar to the disk drive required and then press the [Enter] key.
- @EndOutDrive
-
- @GetSubdir @Ustation
- @Cls
- In which subdirectory on disk @UstationDrive: is Microstation installed?
- @PROMPT = " Which subdirectory? "
- @EndSubdir
-
- @GetSubdir @MDLApps
- @Cls
- In which subdirectory on disk @UstationDrive: are your MDL applications installed?
- @PROMPT = " Which subdirectory? "
- @EndSubdir
-
- @Endif /* 20 ) */
-
- @DefineDisk
- @Label = "Disk 1 of 1"
-
- @BeginLib hquin.KDC
- @File *.* @Out @HarlequinDrive:\\@Harlequin\\hquin\\*.*
- @EndLib
-
- @BeginLib shquin.KDC
- @File *.* @Out @HarlequinDrive:\\@Harlequin\\shquin\\*.*
- @EndLib
-
- @BeginLib hmca.KDC
- @File *.* @Out @HarlequinDrive:\\@Harlequin\\hmca\\*.*
- @EndLib
-
- @BeginLib h2000.KDC
- @File *.* @Out @HarlequinDrive:\\@Harlequin\\h2000\\*.*
- @EndLib
-
- @BeginLib hquin8v.KDC
- @File *.* @Out @HarlequinDrive:\\@Harlequin\\hquin8v\\*.*
- @EndLib
-
- @BeginLib TIGAUTIL.KDC
- @File *.* @Out @HarlequinDrive:\\@Harlequin\\*.*
- @EndLib
-
- @BeginLib TIGADEMO.KDC
- @File *.* @Out @HarlequinDrive:\\@Harlequin\\tigademo\\*.*
- @EndLib
-
- @BeginLib TIGATEST.KDC
- @File *.* @Out @HarlequinDrive:\\@Harlequin\\tigatest\\*.*
- @EndLib
-
- @BeginLib UTILITY.KDC
- @File *.* @Out @HarlequinDrive:\\@Harlequin\\*.*
- @EndLib
-
- @BeginLib TIGAFLIC.KDC
- @File *.* @Out @HarlequinDrive:\\@Harlequin\\*.*
- @EndLib
-
- @BeginLib TQCATCH.KDC
- @File *.* @Out @HarlequinDrive:\\@Harlequin\\*.*
- @EndLib
-
- @If (10 [= @Option) /* ( */
- @BeginLib WINDOWS.KDC
- @File *.* @Out @HarleyWindowsDrive:\\@HarleyWindows\\*.*
- @File *.drv @Out @WDrive:\\@Windows\\system\\*.*
- @File *.rlm @Out @WDrive:\\@Windows\\system\\*.*
- @File *.386 @Out @WDrive:\\@Windows\\system\\*.*
- @File *.?gr @Out @WDrive:\\@Windows\\system\\*.*
- @EndLib
-
- @BeginLib WINUTIL.KDC
- @File *.* @Out @WDrive:\\@Windows\\*.*
- @EndLib
-
- @BeginLib HARLEMOD.KDC
- @File *.* @Out @HarleyWindowsDrive:\\@HarleyWindows\\*.*
- @EndLib
-
- @BeginLib HARLEZOM.KDC
- @File HZOOM.EXE @Out @HarleyWindowsDrive:\\@HarleyWindows\\*.*
- @File HARLEZOM.HLP @Out @HarleyWindowsDrive:\\@HarleyWindows\\*.*
- @File HQUIN.DLL @Out @WDrive:\\@Windows\\*.*
- @File HSAVE.SCR @Out @WDrive:\\@Windows\\*.*
- @File WIN_AI.DLL @Out @WDrive:\\@Windows\\system\\*.*
- @File HZOOM.RLM @Out @HarlequinDrive:\\@Harlequin\\*.*
- @EndLib
-
- @Endif /* 10 ) */
-
- @If (20 [= @Option) /* ( */
- @BeginLib USTATION.KDC
- @File *.* @Out @HarleyUstationDrive:\\@HarleyUstation\\*.*
- @EndLib
-
- @BeginLib BIRDSEYE.KDC
- @File *.* @Out @UstationDrive:\\@MDLApps\\*.*
- @EndLib
-
- @Endif /* 20 ) */
-
- @EndDisk
-
- @SetAutoexec
- @AskOverwrite
- @Verbatim "@@PATH=%PATH%;@HarlequinDrive:\\@Harlequin"
- @Verbatim "CALL @HarlequinDrive:\\@Harlequin\\TIGA"
- @EndAutoexec
-
- @Finish
- @If (10 [= @Option) /* ( */
- @If (622 /* view DOC file */ [= @Option)
- @Cls
- The next screen shows the HQUIN.DOC file for Windows.
- Use the [Up], [Down], [PageUp], [PageDown] keys to read the file,
- and press [Esc] to finish.
- @Pause
- @Cls
- @Spawn("@InDrive:browse @HarleyWindowsDrive:\\@HarleyWindows\\hquin.doc")
- @Endif
- @Cls
- @ChDrive @WDrive
- @ChDir "@Windows"
- @Spawn("@InDrive:winwall HQUIN.BMP")
- @Cls
- /* @Copy("@HarleyWindowsDrive:\\@HarleyWindows\\hquin.bmp", "hquin.bmp")*/
- /* always create hquin.grp - new addgroup ensures only one - mtf */
- /* you always get harlezoom now - but it wont run on h2000 or hquin8v */
- @Spawn("@InDrive:mkgroupf hquin.grp \"Datapath @HarleName\" HarleMode @HarleyWindowsDrive:\\@HarleyWindows\\HARLEMOD.EXE HarleZoom @HarleyWindowsDrive:\\@HarleyWindows\\HZOOM.EXE")
- @Cls
- @Spawn("@InDrive:addgroup @WDrive:\\@Windows\\HQUIN.GRP")
- @Cls
- @ChDir "@Windows\\system"
- @Spawn("@InDrive:newoem HarleQuin @HarleyWindowsDrive:\\@HarleyWindows\\oemsetup.inf")
- /*@ChDir "@Windows"
- @Spawn("@WDrive:\\@Windows\\setup") - not enuf memory to do this */
- @Cls
- @Endif /* 10 ) */
- @If (20 [= @Option) /* ( */
- @If (@Exists("@UstationDrive:\\@Ustation\\drivers"))
- @ChDrive @UstationDrive
- @ChDir "@Ustation"
- @Copy("@HarleyUstationDrive:\\@HarleyUstation\\*.*", "drivers\\*.*")
- @Else
- @Cls
- WARNING:
- Microstation is not installed in @UstationDrive:@Ustation.
- You will have to copy the drivers from @HarleyUstationDrive:@HarleyUstation
- when you have installed Microstation.
- @Pause
- @Endif
- @Endif /* 20 ) */
- @Cls
- @ChDrive @HarlequinDrive
- @MkDir("@Harlequin")
- @ChDir "@Harlequin"
- @Cls
- /* create TIGAENV.BAT */
- @Delete("tigaenv.bat")
- @Write("tigaenv.bat", "wt",
- "\@ECHO OFF\n")
- @Write(,, "rem Set environment for tiga\n")
- @Write(,, "set HQWINDIR=@WDrive:\\@Windows\n")
- @Write(,, "set TIGA=-m@HarlequinDrive:\\@Harlequin -l@HarlequinDrive:\\@Harlequin -i@TigaInt\n")
- @Write(,, "set HQSERIAL=@HarleSerial\n")
- @Cls
- /* create TIGA.BAT */
- @Delete("tiga.bat")
- @Write("tiga.bat", "wt",
- "\@ECHO OFF\n")
- @Write(,, "rem Load TIGA for the @HarleName\n")
- @Write(,, "rem Environment\n")
- @Write(,, "call TIGAENV\n")
- @Write(,, "rem Have a nice fresh cd\n")
- @Write(,, "TIGACD -U > NUL\n")
- @Write(,, "TIGACD\n")
- @Cls
- /* create configuration batch file */
- @Delete("hconfig.bat") /* name change - delete in 6months - mtf 29jun94 */
- @Delete("hsetup.exe") /* name change - delete in 6months - mtf 29jun94 */
- @Delete("hsetup.bat")
- @Write("hsetup.bat", "wt",
- "\@ECHO OFF\n")
- /*@Write(,, "break off\n") -not needed*/
- @Write(,, "rem Configure TIGA for the @HarleName\n")
- @Write(,, "rem Working directory\n")
- @Write(,, "@HarlequinDrive:\n")
- @Write(,, "cd \\@Harlequin\n")
- @Write(,, "rem Environment\n")
- @Write(,, "call .\\TIGAENV\n")
- @Write(,, "rem Do not need cd\n")
- @Write(,, ".\\TIGACD -U > NUL\n")
- @Write(,, ".\\!!HSETUP %1 %2 %3 %4 %5 %6\n")
- @Write(,, "rem Reload the cd to compact the memory\n")
- @Write(,, ".\\TIGACD -U > NUL\n")
- @Write(,, ".\\TIGACD > NUL\n")
- @Cls
- /* create installation batch file */
- @Delete("instconf.bat") /* name changed 29nov93 - can go in 6mnth */
- @Delete("1sttime.bat")
- @Write("1sttime.bat", "wt",
- "\@ECHO OFF\n")
- /*@Write(,, "break off\n")*/
- @Write(,, "rem First time configure TIGA for the @HarleName\n")
- @Write(,, "rem Working directory\n")
- @Write(,, "@HarlequinDrive:\n")
- @Write(,, "cd \\@Harlequin\n")
- @Write(,, "rem Environment\n")
- @Write(,, "call .\\TIGAENV\n")
- @Write(,, "rem First time harlequin setup\n")
- @Write(,, "call .\\!!HFIRST %1\n")
- @Cls /* environment cleared so works same if not called from install */
- @Write(,, "rem Clear environment\n")
- @Write(,, "set HQSERIAL=\n")
- @Write(,, "set HQWINDIR=\n")
- @Write(,, "set TIGA=\n")
- @Cls
- @If (10 [= @Option) /* ( */
- @Write(,, "rem Force user to reconfig windows\n")
- @Write(,, "@WDrive:\n")
- @Write(,, "cd @Windows\n")
- @Write(,, ".\\setup\n")
- @Endif /* 10 ) */
- @Write(,, "rem Restore working directory\n")
- @Write(,, "@BootDrive:\n")
- @Write(,, "CD \\\n")
- @Cls
- The software installation is now complete. This software will now be
- configured for use with your @HarleName. Please consult the manual
- for more information.
-
- When this configuration is complete please remove the @HarleName disk
- and store it in a safe place, then re-boot your computer.
-
- Your @HarleName is then ready for use.
-
- If you wish, you can run TIGATEST & TIGADEMO to confirm that
- everything is working OK.
-
-
-
- Thank you for purchasing this Datapath @HarleName.
-
-
-
- @FlushKeyboard()
- @Pause
- @ChDrive @HarlequinDrive
- @ChDir "@Harlequin"
- @Execute "COMMAND.COM", "/E:1536 /C 1STTIME"
- @EndFinish
-